/**
* OfdFoodData.ts
* 食品动态数据 数据模型
*/

// 数据创建参数类
export class OfdFoodDataCreateParam {
	id?: number; // 主键
	code?: number; // 编码
	foodCode?: number; // 食品编码
	stock?: number; // 库存
	favorite?: number; // 收藏
	heart?: number; // 点赞
	comment?: number; // 评论
	recommend?: number; // 推荐
	blacklist?: number; // 拉黑
	createTime?: number; // 创建时间
	updateTime?: number; // 更新时间
	isDeleted?: number; // 是否删除 0 - 未删除 1 - 已删除
	status?: number; // 状态 0 - 正常 1 - 异常

	// 构造函数2
	constructor(id?: number, code?: number, foodCode?: number, stock?: number, favorite?: number, heart?: number, comment?: number, recommend?: number, blacklist?: number, createTime?: number, updateTime?: number, isDeleted?: number, status?: number) {
		this.id = id;
		this.code = code;
		this.foodCode = foodCode;
		this.stock = stock;
		this.favorite = favorite;
		this.heart = heart;
		this.comment = comment;
		this.recommend = recommend;
		this.blacklist = blacklist;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.isDeleted = isDeleted;
		this.status = status;
	}
}

// 数据更新参数类
export class OfdFoodDataUpdateParam {
	id: number; // 主键
	code?: number; // 编码
	foodCode?: number; // 食品编码
	stock?: number; // 库存
	favorite?: number; // 收藏
	heart?: number; // 点赞
	comment?: number; // 评论
	recommend?: number; // 推荐
	blacklist?: number; // 拉黑
	createTime?: number; // 创建时间
	updateTime?: number; // 更新时间
	isDeleted?: number; // 是否删除 0 - 未删除 1 - 已删除
	status?: number; // 状态 0 - 正常 1 - 异常

	// 构造函数
	constructor(id: number, code?: number, foodCode?: number, stock?: number, favorite?: number, heart?: number, comment?: number, recommend?: number, blacklist?: number, createTime?: number, updateTime?: number, isDeleted?: number, status?: number) {
		this.id = id;
		this.code = code;
		this.foodCode = foodCode;
		this.stock = stock;
		this.favorite = favorite;
		this.heart = heart;
		this.comment = comment;
		this.recommend = recommend;
		this.blacklist = blacklist;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.isDeleted = isDeleted;
		this.status = status;
	}
}

// 数据创建或者更新参数类
export class OfdFoodDataCreateOrUpdateParam {
	id?: number; // 主键
	code?: number; // 编码
	foodCode?: number; // 食品编码
	stock?: number; // 库存
	favorite?: number; // 收藏
	heart?: number; // 点赞
	comment?: number; // 评论
	recommend?: number; // 推荐
	blacklist?: number; // 拉黑
	createTime?: number; // 创建时间
	updateTime?: number; // 更新时间
	isDeleted?: number; // 是否删除 0 - 未删除 1 - 已删除
	status?: number; // 状态 0 - 正常 1 - 异常

	// 构造函数2
	constructor(id?: number, code?: number, foodCode?: number, stock?: number, favorite?: number, heart?: number, comment?: number, recommend?: number, blacklist?: number, createTime?: number, updateTime?: number, isDeleted?: number, status?: number) {
		this.id = id;
		this.code = code;
		this.foodCode = foodCode;
		this.stock = stock;
		this.favorite = favorite;
		this.heart = heart;
		this.comment = comment;
		this.recommend = recommend;
		this.blacklist = blacklist;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.isDeleted = isDeleted;
		this.status = status;
	}
}

// 数据搜索参数类
export class OfdFoodDataSearchParam {
	id?: number; // 主键
	code?: number; // 编码
	foodCode?: number; // 食品编码
	stock?: number; // 库存
	favorite?: number; // 收藏
	heart?: number; // 点赞
	comment?: number; // 评论
	recommend?: number; // 推荐
	blacklist?: number; // 拉黑
	createTime?: number; // 创建时间
	updateTime?: number; // 更新时间
	isDeleted?: number; // 是否删除 0 - 未删除 1 - 已删除
	status?: number; // 状态 0 - 正常 1 - 异常

	// 构造函数2
	constructor(id?: number, code?: number, foodCode?: number, stock?: number, favorite?: number, heart?: number, comment?: number, recommend?: number, blacklist?: number, createTime?: number, updateTime?: number, isDeleted?: number, status?: number) {
		this.id = id;
		this.code = code;
		this.foodCode = foodCode;
		this.stock = stock;
		this.favorite = favorite;
		this.heart = heart;
		this.comment = comment;
		this.recommend = recommend;
		this.blacklist = blacklist;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.isDeleted = isDeleted;
		this.status = status;
	}
}

// 排序参数类
export class OfdFoodDataOrderParam {
	id?: number; // 主键
	code?: number; // 编码
	foodCode?: number; // 食品编码
	stock?: number; // 库存
	favorite?: number; // 收藏
	heart?: number; // 点赞
	comment?: number; // 评论
	recommend?: number; // 推荐
	blacklist?: number; // 拉黑
	createTime?: number; // 创建时间
	updateTime?: number; // 更新时间
	isDeleted?: number; // 是否删除
	status?: number; // 状态

	// 构造函数
	constructor(id?: number, code?: number, foodCode?: number, stock?: number, favorite?: number, heart?: number, comment?: number, recommend?: number, blacklist?: number, createTime?: number, updateTime?: number, isDeleted?: number, status?: number) {
		this.id = id; // 主键
		this.code = code; // 编码
		this.foodCode = foodCode; // 食品编码
		this.stock = stock; // 库存
		this.favorite = favorite; // 收藏
		this.heart = heart; // 点赞
		this.comment = comment; // 评论
		this.recommend = recommend; // 推荐
		this.blacklist = blacklist; // 拉黑
		this.createTime = createTime; // 创建时间
		this.updateTime = updateTime; // 更新时间
		this.isDeleted = isDeleted; // 是否删除 0 - 未删除 1 - 已删除
		this.status = status; // 状态 0 - 正常 1 - 异常
	}
}

// 请求响应结果数据类型
export interface OfdFoodDataResult{
	id: number; // 主键
	code?: number; // 编码
	foodCode?: number; // 食品编码
	stock?: number; // 库存
	favorite?: number; // 收藏
	heart?: number; // 点赞
	comment?: number; // 评论
	recommend?: number; // 推荐
	blacklist?: number; // 拉黑
	createTime?: number; // 创建时间
	updateTime?: number; // 更新时间
	isDeleted?: number; // 是否删除 0 - 未删除 1 - 已删除
	status?: number; // 状态 0 - 正常 1 - 异常
}
